home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / msdos / dirty.h < prev    next >
Text File  |  1999-03-06  |  379b  |  10 lines

  1. #define MAX_GFX_WIDTH 1600
  2. #define MAX_GFX_HEIGHT 1600
  3. #define DIRTY_H 256             /* 160 would be enough, but * 256 is faster */
  4. #define DIRTY_V (MAX_GFX_HEIGHT/16)
  5.  
  6.  
  7. typedef char dirtygrid[DIRTY_V * DIRTY_H];
  8. #define ISDIRTY(x,y) (dirty_new[(y)/16 * DIRTY_H + (x)/16] || dirty_old[(y)/16 * DIRTY_H + (x)/16])
  9. #define MARKDIRTY(x,y) dirty_new[(y)/16 * DIRTY_H + (x)/16] = 1
  10.